package org.example.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("goods")
public class Goods {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("item_id")
    private Integer itemId;

    @TableField("goods_id")
    private Integer goodsId;

    private String title;

    @TableField("small_pic")
    private String smallPic;

    private BigDecimal price;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    /**
    * 1表示可用；0表示不可用(软删除)
    */
    private String status;

    @TableField("stock_num")
    private Integer stockNum;

    private String description;
}